package com.gec.zhs.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 入库通知单明细
 * @TableName wmsinboundorderdtbl
 */
@TableName(value ="wmsinboundorderdtbl")
@Data
public class Wmsinboundorderdtbl implements Serializable {
    /**
     * 入库通知单明细号
     */
    @TableId
    private String id;

    /**
     * 入库通知单号
     */
    @TableId
    private String orderid;

    /**
     * 含税单价
     */
    private BigDecimal price;

    /**
     * 无税单价
     */
    private BigDecimal pricenotax;

    /**
     * 是否收货中(0:非收货中,1:收货中)
     */
    private Integer instockstatus;

    /**
     * 到货状况(SYS_GOODSARRIVESTATUS)
     */
    private Integer asnstatus;

    /**
     * 商品编号
     */
    private String goodsid;

    /**
     * 商品批号
     */
    private String goodsbatch;

    /**
     * 品质(SYS_QUALITYFLAG)
     */
    private String qualityflg;

    /**
     * 通知数量
     */
    private BigDecimal ordernum;

    /**
     * 到货数量
     */
    private BigDecimal innum;

    /**
     * 剩余数量
     */
    private BigDecimal leavenum;

    /**
     * 占用数量
     */
    private BigDecimal holdnum;

    /**
     * 生产日期
     */
    private String proddate;

    /**
     * 失效日期
     */
    private String expiredate;

    /**
     * 税率
     */
    private BigDecimal taxrate;

    /**
     * 货主编号
     */
    private String ownerid;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建时间
     */
    private Date createtime;

    /**
     * 创建人ID
     */
    private String createuserid;

    /**
     * 创建人
     */
    private String createusername;

    /**
     * 最后更新时间
     */
    private Date updatetime;

    /**
     * 最后更新人ID
     */
    private String updateuserid;

    /**
     * 最后更新人
     */
    private String updateusername;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Wmsinboundorderdtbl other = (Wmsinboundorderdtbl) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOrderid() == null ? other.getOrderid() == null : this.getOrderid().equals(other.getOrderid()))
            && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()))
            && (this.getPricenotax() == null ? other.getPricenotax() == null : this.getPricenotax().equals(other.getPricenotax()))
            && (this.getInstockstatus() == null ? other.getInstockstatus() == null : this.getInstockstatus().equals(other.getInstockstatus()))
            && (this.getAsnstatus() == null ? other.getAsnstatus() == null : this.getAsnstatus().equals(other.getAsnstatus()))
            && (this.getGoodsid() == null ? other.getGoodsid() == null : this.getGoodsid().equals(other.getGoodsid()))
            && (this.getGoodsbatch() == null ? other.getGoodsbatch() == null : this.getGoodsbatch().equals(other.getGoodsbatch()))
            && (this.getQualityflg() == null ? other.getQualityflg() == null : this.getQualityflg().equals(other.getQualityflg()))
            && (this.getOrdernum() == null ? other.getOrdernum() == null : this.getOrdernum().equals(other.getOrdernum()))
            && (this.getInnum() == null ? other.getInnum() == null : this.getInnum().equals(other.getInnum()))
            && (this.getLeavenum() == null ? other.getLeavenum() == null : this.getLeavenum().equals(other.getLeavenum()))
            && (this.getHoldnum() == null ? other.getHoldnum() == null : this.getHoldnum().equals(other.getHoldnum()))
            && (this.getProddate() == null ? other.getProddate() == null : this.getProddate().equals(other.getProddate()))
            && (this.getExpiredate() == null ? other.getExpiredate() == null : this.getExpiredate().equals(other.getExpiredate()))
            && (this.getTaxrate() == null ? other.getTaxrate() == null : this.getTaxrate().equals(other.getTaxrate()))
            && (this.getOwnerid() == null ? other.getOwnerid() == null : this.getOwnerid().equals(other.getOwnerid()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()))
            && (this.getCreateuserid() == null ? other.getCreateuserid() == null : this.getCreateuserid().equals(other.getCreateuserid()))
            && (this.getCreateusername() == null ? other.getCreateusername() == null : this.getCreateusername().equals(other.getCreateusername()))
            && (this.getUpdatetime() == null ? other.getUpdatetime() == null : this.getUpdatetime().equals(other.getUpdatetime()))
            && (this.getUpdateuserid() == null ? other.getUpdateuserid() == null : this.getUpdateuserid().equals(other.getUpdateuserid()))
            && (this.getUpdateusername() == null ? other.getUpdateusername() == null : this.getUpdateusername().equals(other.getUpdateusername()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOrderid() == null) ? 0 : getOrderid().hashCode());
        result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
        result = prime * result + ((getPricenotax() == null) ? 0 : getPricenotax().hashCode());
        result = prime * result + ((getInstockstatus() == null) ? 0 : getInstockstatus().hashCode());
        result = prime * result + ((getAsnstatus() == null) ? 0 : getAsnstatus().hashCode());
        result = prime * result + ((getGoodsid() == null) ? 0 : getGoodsid().hashCode());
        result = prime * result + ((getGoodsbatch() == null) ? 0 : getGoodsbatch().hashCode());
        result = prime * result + ((getQualityflg() == null) ? 0 : getQualityflg().hashCode());
        result = prime * result + ((getOrdernum() == null) ? 0 : getOrdernum().hashCode());
        result = prime * result + ((getInnum() == null) ? 0 : getInnum().hashCode());
        result = prime * result + ((getLeavenum() == null) ? 0 : getLeavenum().hashCode());
        result = prime * result + ((getHoldnum() == null) ? 0 : getHoldnum().hashCode());
        result = prime * result + ((getProddate() == null) ? 0 : getProddate().hashCode());
        result = prime * result + ((getExpiredate() == null) ? 0 : getExpiredate().hashCode());
        result = prime * result + ((getTaxrate() == null) ? 0 : getTaxrate().hashCode());
        result = prime * result + ((getOwnerid() == null) ? 0 : getOwnerid().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        result = prime * result + ((getCreateuserid() == null) ? 0 : getCreateuserid().hashCode());
        result = prime * result + ((getCreateusername() == null) ? 0 : getCreateusername().hashCode());
        result = prime * result + ((getUpdatetime() == null) ? 0 : getUpdatetime().hashCode());
        result = prime * result + ((getUpdateuserid() == null) ? 0 : getUpdateuserid().hashCode());
        result = prime * result + ((getUpdateusername() == null) ? 0 : getUpdateusername().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", orderid=").append(orderid);
        sb.append(", price=").append(price);
        sb.append(", pricenotax=").append(pricenotax);
        sb.append(", instockstatus=").append(instockstatus);
        sb.append(", asnstatus=").append(asnstatus);
        sb.append(", goodsid=").append(goodsid);
        sb.append(", goodsbatch=").append(goodsbatch);
        sb.append(", qualityflg=").append(qualityflg);
        sb.append(", ordernum=").append(ordernum);
        sb.append(", innum=").append(innum);
        sb.append(", leavenum=").append(leavenum);
        sb.append(", holdnum=").append(holdnum);
        sb.append(", proddate=").append(proddate);
        sb.append(", expiredate=").append(expiredate);
        sb.append(", taxrate=").append(taxrate);
        sb.append(", ownerid=").append(ownerid);
        sb.append(", remark=").append(remark);
        sb.append(", createtime=").append(createtime);
        sb.append(", createuserid=").append(createuserid);
        sb.append(", createusername=").append(createusername);
        sb.append(", updatetime=").append(updatetime);
        sb.append(", updateuserid=").append(updateuserid);
        sb.append(", updateusername=").append(updateusername);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}